package com.gf.framework.rpcdemo.api.feign;

import com.gf.framework.common.result.R;
import com.gf.framework.rpcdemo.api.model.RequestModel;
import com.gf.framework.rpcdemo.api.model.ResponseModel;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author gaofei
 * @date 2022/6/3 17:53
 */
public interface IApi {
    @GetMapping("hello")
    R<String> hello();

    @PostMapping("posttest")
    R<ResponseModel> posttest(@RequestBody RequestModel requestModel);

}
